<%@page import="com.dts.project.dao.CityMasterDao"%>
<%@page import="com.yourcompany.struts.form.CityMasterForm"%>
<%@page import="com.dts.project.dao.CountryMasterDao"%>
<%@page import="com.dts.core.util.CoreList"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.yourcompany.struts.form.CountryMasterForm"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html>
<head>
<style>
body,td,th {
	color: #B00606;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style9 {color: #FFFFFF}
body {
	background-color: #003333;
}
</style>

<title>EPost- Office</title>
<script type="text/javascript" src="scripts/moveclock.js"></script>



<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>
<table width="750" align="center" bgcolor="#B00606">
<tr><td>
<img src="images/epostoffice.gif" width="780"></td>
</tr>
<tr>
   <td bgcolor="#E16A00"><jsp:include page="Adminoptions.jsp"/></td></tr>
<tr><td>
<%--<div align="center">--%>
<%--<table bgcolor="#B00606" width="750" align="center">--%>
<%--<tr>--%>
<%--   <td><jsp:include page="Template.html"/></td></tr></table></div>--%>
<div align="center">
<table bgcolor="#B00606" width="770" align="center" height="70">
<tr>
   <td>
   
   <marquee><font color="#ECEDF3"><h1>WELCOME TO THE Admin Site</h1></marquee>
<marquee> <img src="images/IndianStamps.gif" height="100"><img src="images/ist2_1276217-vintage-indian-stamps-ephemera.jpg" height="100"><img src="images/images.jpeg" height="100"><img src="images/images1.jpeg" height="100"><img src="images/stamp price.jpg" height="100"><img src="images/2007-03-28-sw-stamps.jpg" height="100"><img src="images/6a00d83452795369e200e5506182958834-500wi.jpg" height="100"><img src="images/stamp-avocet.JPG" height="100"></marquee>
   <p align="center">
    
    
    
    
    
   <center>
  <h2><font color="white"> Update City Details</font></h2>   
<%
String storepath=request.getRealPath("/images");
int id=Integer.parseInt(request.getParameter("Id"));
CityMasterDao dao=new CityMasterDao();
CityMasterForm form=dao.ViewCityMasterById(storepath,id);
//String countryname=form.getCountryname();
%>
			<form action="updateCityAction.do">
			<table align="center" bgcolor="#666633">
			<tr><td><font color="white"><strong>Country Name :</strong></font> </td><td><select name="countryId"> 
		<option value="<%=form.getCountryId() %>"><%=form.getCountryname() %></option>
			<%
			 
			CountryMasterDao dao1=new CountryMasterDao();
			CoreList cl1=dao1.ViewCountryMaster(storepath);
			Enumeration en1=cl1.elements();
			while(en1.hasMoreElements())
			{
			CountryMasterForm form1=(CountryMasterForm)en1.nextElement();
			 %>
			 <option value="<%=form1.getCountryId() %>"><%=form1.getCountryName() %></option>
			 <%} %></select></td></tr>
           <tr><td><font color="white"><strong>City Name : </strong></font></td><td><input type=text name="cityName" value="<%=form.getCityName() %>"/> </td></tr>			
			<tr><td> </td><td><input type="hidden" name="cityId" value=<%=id %>></td></tr> 
			<tr><td><font color="white"><strong>City Map :</strong></font> </td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=file name="cityMap"/></td></tr>
			<%String realpath=request.getRealPath("/images"); 
			System.out.println("realpath"+realpath+"/"+form.getCityMap());%>
			<input type="hidden" name="cityMap1" value="<%=realpath+"/"+form.getCityMap()%>"/>
		
				 
			<tr><td><font color="white"><strong>Description :</strong></font> </td><td><input type=text name="description" value="<%=form.getDescription() %>"/> </td></tr>
			<tr><td><font color="white"><strong>Abbrivation :</strong></font> </td><td><input type=text name="abbr" value="<%=form.getDescription() %>"/> </td></tr>
						
			<tr><td></td><td><input type=submit name="Register" value="update"/> </td></tr></table>
		</form>     
     </center>
    
     
     
     </td></tr></table>
          <p>&nbsp;</p>
               <p>&nbsp;</p>
                    <p>&nbsp;</p>
                         
           <p>&nbsp;</p>
               <p>&nbsp;</p>
                    <p>&nbsp;</p>
                         
           <p>&nbsp;</p>
             
                         
                              
     <p>&nbsp;</p></div>


</body></html>